//
//  TabBarViewController.m
//  开心一刻
//
//  Created by lanou on 16/4/6.
//  Copyright © 2016年 刘洋. All rights reserved.
//

#import "TabBarViewController.h"
#import "ArtViewController.h"
#import "PageShyViewController.h"
#import "MovieOrMusicViewController.h"
#import "MyHelpViewController.h"
@interface TabBarViewController ()

@end

@implementation TabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // tababr 设置导航控制器 与根式图
    // Do any additional setup after loading the view.
    // 第一个
    PageShyViewController * shy = [[PageShyViewController alloc]init
                                   ];
    UINavigationController * shyNaVc = [[UINavigationController alloc]initWithRootViewController:shy];
    [shyNaVc.tabBarItem setImage:[UIImage imageNamed:@"22"]];
    shyNaVc.tabBarItem.title = @"内涵";
    // 第二个
    MovieOrMusicViewController * movie = [[MovieOrMusicViewController alloc]init];
    UINavigationController * movieNavc = [[UINavigationController alloc]initWithRootViewController:movie];
     [movieNavc.tabBarItem setImage:[UIImage imageNamed:@"11"]];
    movieNavc.tabBarItem.title = @"休闲";
    // 第三个
    ArtViewController * art = [[ArtViewController alloc]init];
    UINavigationController * artNaVc = [[UINavigationController alloc]initWithRootViewController:art];
     [artNaVc.tabBarItem setImage:[UIImage imageNamed:@"44"]];
    artNaVc.tabBarItem.title = @"艺术";
   // 第四个
    MyHelpViewController * help = [[MyHelpViewController alloc]init];
    UINavigationController * helpNavc = [[UINavigationController alloc]initWithRootViewController:help];
     [helpNavc.tabBarItem setImage:[UIImage imageNamed:@"55"]];
    helpNavc.tabBarItem.title = @"助手";
    self.viewControllers = @[shyNaVc,movieNavc,artNaVc,helpNavc];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
